using Microsoft.Scripting;
using Microsoft.Scripting.Hosting;

namespace MEA.AE_BusinessLogic
{
	public class MyErrorListener : ErrorListener
	{
		public string Message { get; set; }

		public int ErrorCode { get; set; }

		public Severity sev { get; set; }

		public SourceSpan Span { get; set; }

		public override void ErrorReported(ScriptSource source, string message, SourceSpan span, int errorCode, Severity severity)
		{
			Message = message;
			ErrorCode = errorCode;
			sev = severity;
			Span = span;
		}
	}
}
